package com.sfjswl.fp.core.leaf.pack;

import com.sfjswl.fp.core.context.RuleContext;
import com.sfjswl.fp.core.context.RulePack;
import com.sfjswl.fp.core.leaf.base.BaseLeafNone;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class BaseLeafPackNone extends BaseLeafNone {

  @Override
  protected void doNone(RuleContext ctx) {
    doPackNone(ctx.getPack());
  }

  protected abstract void doPackNone(RulePack pack);
}
